package web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * created by yb
 * on 2017/8/17.
 **/
@Controller
public class HelloNovelSpiderController {
    @RequestMapping(value = "/hello.do" ,method = RequestMethod.GET)
    @ResponseBody
    public A sayHello(){
        A a = new A();
        a.setMessage( "你好啊啊" );
        return a;
    }
}

class A{
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage( String message ) {
        this.message = message;
    }
}
